/*
 * Copyright DimYLiK.
 */

package com.example.myapp.client.components;

public class FillFieldButton extends AntiBaldaButton {

    private static final String BUTTON_LABEL = "!";
    private static final String BUTTON_STYLE = "fillFieldButton";
    private static final String BUTTON_STYLE_DISABLED = "fillFieldButtonDisabled";

    public FillFieldButton(String title, String move) {
        super(BUTTON_LABEL, title);

        if (move != null) {
            setStyleName(BUTTON_STYLE);
        } else {
            setDisabled();
        }
    }

    public void setDisabled() {
        setEnabled(false);
        setStyleName(BUTTON_STYLE_DISABLED);
    }
}
